//v1.0
//Copyright 2006 Adobe Systems, Inc. All rights reserved.
function go_page(NUM)
{
  switch(NUM){
	case 11 : document.location="C_About212.html"; break;
	case 12 : document.location="C_Capability.html"; break;
	case 13 : document.location="C_People.html"; break;
	case 14 : document.location="C_Contect.html"; break;
	case 21 : document.location="W_CaseStudies.php"; break;
	case 22 : document.location="W_Portfolio.php"; break;
	case 23 : document.location="W_Clients.php"; break;
	case 31 : document.location="S_News_List.php?gubun=news"; break;
	case 32 : document.location="S_News_List.php?gubun=essay"; break;
	case 41 : document.location="O_OnlineConsulting.php"; break;
	case 42 : document.location="O_Recruit.php"; break;
  }
}

function go_language(NUM)
{
  switch(NUM){
	case 1 : document.location="/"; break;
	case 2 : document.location="/en/"; break;
  }
}

function go_news()
{
	document.location.href="S_News.php?gubun=news";
}
function go_essay()
{
	document.location.href="S_News.php?gubun=essay";
}
function go_board()
{
	document.location.href="S_News.php?gubun=board";
}

function go_AuthDel(id,gubun,pagenum)
{
	var answer;
	answer = confirm("°Ô½Ã¹°À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?");
	if(answer == true)
	{
		document.location.href="S_News_Action.php?pagenum="+pagenum+"&gubun="+gubun+"&action=delete&id="+id+"&lang=ko";		
	}
}
function go_UserDel(id,gubun,pagenum)
{
	var answer, passwd;
	answer = confirm("°Ô½Ã¹°À» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?");
	if(answer == true)
	{
		passwd = prompt("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä","");	
		if(passwd !="")
		{
			document.location.href="S_News_Action.php?pagenum="+pagenum+"&gubun="+gubun+"&action=delete&id="+id+"&passwd="+passwd+"&lang=ko";
		}
	}
}

function go_UserModyfi(id,gubun,pagenum)
{
	var answer, passwd;
	answer = confirm("°Ô½Ã¹°À» ¼öÁ¤ÇÏ½Ã°Ú½À´Ï±î?");
	if(answer == true)
	{
		passwd = prompt("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä","");	
		if(passwd !="")
		{
			document.location.href="S_News_Write.php?pagenum="+pagenum+"&gubun="+gubun+"&action=modyfi&id="+id+"&passwd="+passwd+"&lang=ko";
			//this.window.close();
		}
	}
}

function go_AuthModyfi(id,gubun,pagenum)
{
	var answer;
	answer = confirm("°Ô½Ã¹°À» ¼öÁ¤ÇÏ½Ã°Ú½À´Ï±î?"+id+gubun);
	if(answer == true)
	{
		document.location.href="S_News_Write.php?pagenum="+pagenum+"&gubun="+gubun+"&action=modyfi&id="+id+"&lang=ko";
		//this.window.close();
	}
}